package cn.xorange.commons.data.entity;

import lombok.Data;

import java.util.Objects;

@Data
public class TableColumn {

    private String fieldName;
    private String colName;
    private String columnName;
    private String dataType;
    private Integer length;

    public String getColName(){
        if(Objects.isNull(this.colName)){
            return this.columnName;
        }else {
            return this.colName;
        }
    }

}
